#ifndef TIME_DISPLAY_H
#define TIME_DISPLAY_H

#include <ctime>
#include <string>
#include <chrono>
#include <thread>
#include <iostream>

#include "main.h"

class TimeDisplay
{
public:
    TimeDisplay();
    ~TimeDisplay();

    void start();
    void stop();
    void updateDisplay();

private:
    bool m_running;
    std::thread m_thread;

    std::string getCurrentTime();
    void run();
};

#endif // TIME_DISPLAY_H